package com.itheima.String;

public class Demo1StringBuilder {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i <= 50000; i++) {
            sb.append(i);
        }

        System.out.println(sb);
        long end = System.currentTimeMillis();
        System.out.println(end - start);
    }

}
